package com.turing.post.common.util;

import java.io.Serializable;
import java.util.List;

import com.turing.post.util.PCPSWebReturn;

/**
 * @author zxp
 * @Dec 17, 2012
 */
@SuppressWarnings("serial")
public class LogonResult extends PCPSWebReturn implements Serializable {

	List<SysOpMenuGroup> result = null;

	SysOpUser sysOpUser = null;

	public LogonResult() {

	}

	/**
	 * @用户登录成功返回
	 * @param list
	 */
	public LogonResult(List<SysOpMenuGroup> list, SysOpUser _sysOpUser) {
		super(true);
		result = list;
		sysOpUser = _sysOpUser;
	}

	/**
	 * @用户登录失败返回
	 * @param list
	 */
	public LogonResult(boolean isSuccess, String excepCode, String excepMessage) {
		super(isSuccess, excepCode, excepMessage);
	}

	/**
	 * @客户端取值调用
	 * @return
	 */
	public List<SysOpMenuGroup> getResult() {
		return result;
	}

	public void setResult(List<SysOpMenuGroup> result) {
		this.result = result;
	}

	public SysOpUser getSysOpUser() {
		return sysOpUser;
	}

	public void setSysOpUser(SysOpUser sysOpUser) {
		this.sysOpUser = sysOpUser;
	}
}
